x86: fix early boot command line parsing
authorDaniel Kiper <daniel.kiper@oracle.com>
Wed, 4 Dec 2013 12:26:37 +0000 (13:26 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 4 Dec 2013 12:26:37 +0000 (13:26 +0100)
commitdc37e0bfffc673f4bdce1d69ad86098bfb0ab531
tree74f7727e023e1a76b7c99e09d551f7f79ea09ef1
parente1978480c76e36bc22ec12657121ac91d08aca6b
x86: fix early boot command line parsing

There is no reliable way to encode NUL character as a character so encode
it as a number. Read: http://sourceware.org/binutils/docs/as/Characters.html.
Octal and hex encoding do not work on at least one system (GNU assembler
version 2.22 (x86_64-linux-gnu) using BFD version (GNU Binutils for Debian) 2.22).
Without this fix e.g. no-real-mode option at the end of xen.gz command line
is not detected.

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/boot/cmdline.S